package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 告警信息对象 sys_alarm
 * 
 * @author ruoyi
 * @date 2021-04-27
 */
public class SysAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private String alarmId;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private String alarmTimestamp;

    /** 设备id */
    @Excel(name = "设备id")
    private String alarmDeviceId;

    /** 告警信息 */
    @Excel(name = "告警信息")
    private String alarmInfo;

    /** 解决方案 */
    @Excel(name = "解决方案")
    private String alarmSolution;

    /** 状态（0已处理 1未处理) */
    @Excel(name = "状态", readConverterExp = "0=已处理, 1=未处理")
    private String alarmStatus;

    public void setAlarmId(String alarmId) 
    {
        this.alarmId = alarmId;
    }

    public String getAlarmId() 
    {
        return alarmId;
    }
    public void setAlarmTimestamp(String alarmTimestamp) 
    {
        this.alarmTimestamp = alarmTimestamp;
    }

    public String getAlarmTimestamp() 
    {
        return alarmTimestamp;
    }
    public void setAlarmDeviceId(String alarmDeviceId) 
    {
        this.alarmDeviceId = alarmDeviceId;
    }

    public String getAlarmDeviceId() 
    {
        return alarmDeviceId;
    }
    public void setAlarmInfo(String alarmInfo) 
    {
        this.alarmInfo = alarmInfo;
    }

    public String getAlarmInfo() 
    {
        return alarmInfo;
    }
    public void setAlarmSolution(String alarmSolution) 
    {
        this.alarmSolution = alarmSolution;
    }

    public String getAlarmSolution() 
    {
        return alarmSolution;
    }
    public void setAlarmStatus(String alarmStatus) 
    {
        this.alarmStatus = alarmStatus;
    }

    public String getAlarmStatus() 
    {
        return alarmStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alarmId", getAlarmId())
            .append("alarmTimestamp", getAlarmTimestamp())
            .append("alarmDeviceId", getAlarmDeviceId())
            .append("alarmInfo", getAlarmInfo())
            .append("alarmSolution", getAlarmSolution())
            .append("alarmStatus", getAlarmStatus())
            .toString();
    }
}
